package com.chengyu.core.service.member;

import com.chengyu.core.exception.ServiceException;
import com.chengyu.core.model.*;

import java.util.List;

/**
 * @author LeGreen
 * @title 会员绑定给第三方账号
 * @date 2021/1/7
 */
public interface MemberThirdAccountService {


    List<UmsMemberThirdAccount> getList(Integer memberId, Integer type, Integer page, Integer pageSize) throws ServiceException;

    void delete(Integer id);

    void add(UmsMemberThirdAccount umsMemberThirdAccount);

    List<UmsMemberThirdAccount> checkIsExist(UmsMemberThirdAccount umsMemberThirdAccount);

    List<UmsMemberThirdAccount> selectThirdAccountByMemberId(Integer memberId);

    List<UmsMemberThirdAccount> selectThirdAccountByOpenId(String openId);

    void updateRefreshTokenByOpenId(String updateByOpenId,String refreshToken);

    void updateAccessTokenByOpenId(String updateByOpenId,String accessToken);
}
